package com.nanshenycd.pojo;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.ArrayList;
import java.util.Date;
import java.util.List;

@Data
@AllArgsConstructor
@NoArgsConstructor

public class Blog {
    private Long id;
    private String title;
    private String content;
    //首图
    private String firstPicture;
    //原创或者转载标记
    private String flag;
    //浏览次数
    private Integer views;
    //是否开启赞赏
    private boolean appreciation;
    //是否开启转载声明
    private boolean shareStatement;
    //是否允许评论
    private boolean commentabled;
    //是否发布
    private boolean published;
    //是否推荐
    private boolean recommend;
    private Date createTime;
    private Date updateTime;
    private Long userId;
    //多个标签的id
    private String tagIds;
    private Long typeId;
    //博客描述
    private String description;
    private Type type;

    private List<Tag> tags = new ArrayList<>();

    private User user;

    private List<Comment> comments = new ArrayList<>();
}
